const tokenModule={
    namespaced:true,
    state:{
        token:"",
    },
    getters: {
        // 地址列表
        token: state => state.token
    },
    mutations: {
        SAVE_TOKEN(state, token) {
          state.token = token;
        },
        REMOVE_TOKEN(state){
          state.token=''
        }
      },
    
      actions: {
        saveToken({ commit }, token) {
          commit("SAVE_TOKEN", token);
        },
        removeToken({commit}){
          commit('REMOVE_TOKEN')
        }
      },

}